/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package textmining.gpanalysis.stemming;

import java.io.Reader;
import org.apache.lucene.analysis.LowerCaseTokenizer;
import org.apache.lucene.analysis.PorterStemFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.standard.StandardAnalyzer;

/**
 *
 * @author ibrahimsabek
 */
public class PorterStemAnalyzer extends StandardAnalyzer{

    @Override
    public final TokenStream tokenStream(String fieldName, Reader reader) {
        return new PorterStemFilter(new LowerCaseTokenizer(reader));
    }



}
